Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeamCity: add Ephemeral-write-only subproject #12538

Merged
merged 8 commits into from
Dec 17, 2024

Conversation

BBBmau
Copy link
Collaborator

@BBBmau BBBmau commented Dec 10, 2024

Note

This will be marked as Ready for Review once we have a 1.11 TF alpha version ready

Marking Ready for Review with the release of v1.11.0-alpha20241211

This project is meant to be used for testing Write-Only attributes on resources that will support it in Terraform 1.11

It will do the following:

  • Use the latest 1.11 TF Version
  • Run builds on services that will have resources that use write-only attributes
  • Have builds that use modular-magician / HC owned repos
  • CRON triggers to schedule builds on hc repos

Here's a preview of the changes

image

How Triggers are set

image

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.


@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 209 insertions(+))

@BBBmau BBBmau changed the title add Ephemeral-write-only subproject into teamcity TeamCity: add Ephemeral-write-only subproject Dec 11, 2024
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 245 insertions(+))

@BBBmau BBBmau marked this pull request as ready for review December 17, 2024 02:45
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 245 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 162 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 217 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 218 insertions(+))

@BBBmau BBBmau requested a review from SarahFrench December 17, 2024 05:13
Copy link
Contributor

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋🏻 Hey, here's some comments but I'm happy to approve this PR after they're resolved (either via discussion only or via code changes we identify to make).

Comment on lines +38 to +39
// These are the packages that have resources that will use write-only attributes
var ServicesListWriteOnlyGA = getServicesList(arrayOf("compute", "secretmanager", "sql", "bigquerydatatransfer"), "GA")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to see that the new project will be limited to only the necessary services! 🙌🏻 Though the Compute build is one of our longest running builds... so running those tests in the feature branch testing project as well as the nightlies could cause some issues.

That's something to keep an eye on, at least. You could even add services to this list progressively over time, instead of adding them all now, to limit impact. Or you could change the trigger time (see other comment)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was also the idea of changing the test prefix within the write-only subproject to only run Tests with TestAccEphemeral_ though we would miss out on making sure all other tests aren't affected.

I could ensure that all other tests pass by manually triggering them to run the suite entirely, I'm leaning towards this in order to not have to make any TC updates in the future such as including it as part of the getServices list.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good to me, as long as you're aware there's a potential problem and you've got options about how to navigate it then I'm good 👍🏻

Comment on lines 31 to 33
val trigger = NightlyTriggerConfiguration(
branch = "refs/heads/$featureBranchEphemeralWriteOnly" // triggered builds must test the feature branch
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see other comment about conflicting with the nightly tests, particularly for Compute.

To mitigate this, you could update the trigger in the feature branch test project to run on a later schedule versus the nightlies. E.g. default time + 6 hours

@BBBmau BBBmau force-pushed the add-ephemeral-write-only-tc branch from 83bae16 to 0ce1327 Compare December 17, 2024 16:58
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 163 insertions(+))

1 similar comment
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 163 insertions(+))

@BBBmau BBBmau force-pushed the add-ephemeral-write-only-tc branch from 0ce1327 to 519e6be Compare December 17, 2024 17:18
@BBBmau BBBmau force-pushed the add-ephemeral-write-only-tc branch from 519e6be to 18aa211 Compare December 17, 2024 17:25
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 163 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 219 insertions(+))

@BBBmau
Copy link
Collaborator Author

BBBmau commented Dec 17, 2024

although this was approved, it could use a quick PR check since I introduced support for custom test prefix.

Currently this will only run tests with the regex TestAcc.*Ephemeral with the default value being TestAcc if unset.

@SarahFrench

This can be ignored after seeing #12538 (comment)

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 226 insertions(+), 6 deletions(-))

@BBBmau BBBmau merged commit a560147 into GoogleCloudPlatform:main Dec 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants